import http from "@/utils/http"

const prefixUrl = "/weixin"
export default {
  role: {
    query: "GET:/weixin",
    create: "POST:/weixin",
    select: "GET:/weixin/:id",
    update: "PUT:/weixin/:id",
    delete: "DELETE:/weixin/:id",
  },
  query(params) {
    return http.get(prefixUrl, params)
  },
  create(params) {
    return http.post(prefixUrl, params)
  },
  select(id) {
    return http.get(prefixUrl + "/" + id)
  },
  update(id, params) {
    return http.put(prefixUrl + "/" + id, params)
  },
  delete(id) {
    return http.delete(prefixUrl + "/" + id)
  },
}
